package capricornus.components
{
	import capricornus.components.button.Button;

	/**
	 * 负责创建各个组件 
	 * @author Administrator
	 * 
	 */	
	public class ComponentsUtils
	{
		/**
		 * 创建按钮 
		 * @param label
		 * @param w，如果为0，则认为是根据label自动适应大小
		 * @param h
		 * @return 
		 * 
		 */		
		public static function createButton( label:String, w:int=0, h:int=0 ):Button
		{
			var btn:Button = new Button();
			btn.setSize( w, h );
			btn.label = label;
			return btn;
		}
	}
}